package com.bjesc_b2c.app.appraiset.mvp.view.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.bjesc_b2c.app.appraiset.base.BaseAllOrderFragment;

/**
 * Created by yidong on 2017/8/8.
 */

public class All_BoJFragment extends BaseAllOrderFragment {
    private boolean isFirst = true;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        setSatus(2);
        return super.onCreateView(inflater, container, savedInstanceState);
    }
    @Override
    protected void lazyLoad() {
        if (!isVisible || !isPrepared ||! isFirst) {
            return;
        }
        isFirst = false;
        orderPresenter.getAllOrderList(mContext, page, type, keyWord, 2);
    }
}
